Skip to content

[Snyk] Upgrade mocha from 9.2.2 to 11.2.2 #294

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nerdy-tech-com-gitub
Copy link
Owner

@nerdy-tech-com-gitub nerdy-tech-com-gitub commented Jun 5, 2025

snyk-top-banner

Snyk has created this PR to upgrade mocha from 9.2.2 to 11.2.2.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


⚠️ Warning: This PR contains major version upgrade(s), and may be a breaking change.

  • The recommended version is 24 versions ahead of your current version.

  • The recommended version was released 2 months ago.

Issues fixed by the recommended upgrade:

Issue Score Exploit Maturity
high severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-MOCHA-2863123
154 No Known Exploit
medium severity Improper Input Validation
SNYK-JS-NANOID-8492085
154 No Known Exploit
medium severity Cross-site Scripting (XSS)
SNYK-JS-SERIALIZEJAVASCRIPT-6147607
154 Proof of Concept
Release notes
Package name: mocha
  • 11.2.2 - 2025-04-10

    11.2.2 (2025-04-10)

    🩹 Fixes

    📚 Documentation

  • 11.2.1 - 2025-04-10

    11.2.1 (2025-04-10)

    🩹 Fixes

    📚 Documentation

    • fix new website typos, improve readability (#5312) (fbceb19)

    🧹 Chores

  • 11.2.0 - 2025-03-17

    11.2.0 (2025-03-17)

    🌟 Features

    • enable reporters to show relative paths of tests (#5292) (81ea666)

    📚 Documentation

    🧹 Chores

  • 11.1.0 - 2025-01-02

    11.1.0 (2025-01-02)

    🌟 Features

    • bump yargs to 17 (#5165) (8f1c8d8)
      • Note that this also included a version bump of yargs-parser from ^20.2.9 to ^21.1., which fixed a bug that caused extra quotes in file paths to be removed.
        See #5341 for more information.
  • 11.0.2 - 2024-12-09

    11.0.2 (2024-12-09)

    🩹 Fixes

    • catch exceptions setting Error.stackTraceLimit (#5254) (259f8f8)
    • error handling for unexpected numeric arguments passed to cli (#5263) (210d658)

    📚 Documentation

    • correct outdated status: accepting prs link (#5268) (f729cd0)
    • replace "New in" with "Since" in version annotations (#5262) (6f10d12)
  • 11.0.1 - 2024-12-02

    11.0.1 (2024-12-02)

    🌟 Features

    📚 Documentation

    • fix examples for linkPartialObjects methods (#5255) (34e0e52)
  • 11.0.0 - 2024-11-11

    11.0.0 (2024-11-11)

    ⚠ BREAKING CHANGES

    • adapt new engine range for Mocha 11 (#5216)

    🌟 Features

    🩹 Fixes

    📚 Documentation

  • 11.0.0-beta - 2024-11-23
  • 10.8.2 - 2024-10-30

    10.8.2 (2024-10-30)

    🩹 Fixes

    • support errors with circular dependencies in object values with --parallel (#5212) (ba0fefe)
    • test link in html reporter (#5224) (f054acc)

    📚 Documentation

    • indicate 'exports' interface does not work in browsers (#5181) (14e640e)

    🧹 Chores

    • fix docs builds by re-adding eleventy and ignoring gitignore again (#5240) (881e3b0)

    🤖 Automation

    • deps: bump the github-actions group with 1 update (#5132) (e536ab2)
  • 10.8.1 - 2024-10-29

    10.8.1 (2024-10-29)

    🩹 Fixes

  • 10.8.0 - 2024-10-29

    10.8.0 (2024-10-29)

    🌟 Features

    🩹 Fixes

    📚 Documentation

    🧹 Chores

    • fix npm scripts on windows (#5219) (1173da0)
    • remove trailing whitespace in SECURITY.md (7563e59)
  • 10.7.3 - 2024-08-09
  • 10.7.0 - 2024-07-20
  • 10.6.1 - 2024-07-20
  • 10.6.0 - 2024-07-02
  • 10.5.2 - 2024-06-26
  • 10.5.1 - 2024-06-25
  • 10.5.0 - 2024-06-24
  • 10.4.0 - 2024-03-26
  • 10.3.0 - 2024-02-08
  • 10.3.0-preminor.0 - 2024-01-30
  • 10.2.0 - 2022-12-11
  • 10.1.0 - 2022-10-15
  • 10.0.0 - 2022-05-01
  • 9.2.2 - 2022-03-11
from mocha GitHub release notes

Important

  • Warning: This PR contains a major version upgrade, and may be a breaking change.
  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

Summary by Sourcery

Upgrade Mocha from v9.1.3 to v11.2.2 in deps/cjs-module-lexer to resolve security vulnerabilities and incorporate upstream fixes.

Bug Fixes:

  • Address Regular Expression Denial of Service (ReDoS) vulnerability
  • Fix improper input validation vulnerability
  • Resolve cross-site scripting (XSS) vulnerability in test dependencies

Snyk has created this PR to upgrade mocha from 9.2.2 to 11.2.2.

See this package in npm:
mocha

See this project in Snyk:
https://app.snyk.io/org/nerds-github/project/338ddbb6-0130-444a-a771-ac67c9aec95f?utm_source=github&utm_medium=referral&page=upgrade-pr
Copy link

sourcery-ai bot commented Jun 5, 2025

Reviewer's Guide

This PR upgrades the Mocha test framework from v9.1.3 to v11.2.2 within the CJS module lexer dependency, addressing several Snyk-reported vulnerabilities via a single package.json version bump.

File-Level Changes

Change Details Files
Upgrade Mocha dev dependency to v11.2.2.
  • Updated "mocha" version in package.json from ^9.1.3 to ^11.2.2
deps/cjs-module-lexer/package.json

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants